package com.atguigu.gmall.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class PassPortController {

    @RequestMapping("/login.html")
    public String toLoginPage(@RequestParam("originUrl") String originUrl,
                              Model model) {
        model.addAttribute("originUrl", originUrl);
        return "login";
    }
}
